package com.lzy.product.service;

import com.lzy.product.dtos.agent.AgentPromoteDto;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by WIN7 on 2018/04/14.
 */
public interface AgentPromoteService extends BaseService<AgentPromoteDto> {

    /**
     * 删除销售分佣升级
     *
     * @param protocolId
     * @return
     */
    Boolean deleteByProtocolId(Long protocolId);

    /**
     * 根据协议id和边界值查询
     *
     * @param protocolId
     * @param criticalValue
     * @return
     */
    AgentPromoteDto queryByProtocolIdAndCriticalValue(Long protocolId, BigDecimal criticalValue);

}
